
@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');

*{
    margin:0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    text-align: center;
}
body{
    font-family: 'Amiri', serif;
    background: var(--color-bg  );
    color: var(--color-black);
    line-height: 1.7;
    background-color: white;
    padding: 0;
    margin: 0;

}

html, body { height : 100%; }


.bouton {
    border-radius: 20px;
    border: 1px solid #8D8DAA;
    background-color: #8D8DAA;
    color: #5e6ab0 ;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    margin-top: 10%;
}

.bouton:hover {
    border: 1px solid black;
    background-color: black;
    color: #5e6ab0  ;

    transition: 0.7s;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0;
}

h2 {
    text-align: center;
}

.retour {
    margin-top: 50px;
}


span {
    font-size: 12px;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #c8ad7f;
    background-color: #c8ad7f;
    color: #5e6ab0  ;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}



button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #5e6ab0 ;
}

.container form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

input {
    background-color: #eee;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--color-black);
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25),
    0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    padding-bottom: 10px;
}

.form-container {
    top: 0;
    transition: all 0.6s ease-in-out;
}

.left{
    display: block;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}



.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container{
    transform: translateX(-100%);
}

.overlay {
    background: #c8ad7f;
    background: -webkit-linear-gradient(to right, #c8ad7f, #c8ad7f);
    background: linear-gradient(to right, #c8ad7f, #c8ad7f);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #5e6ab0 ;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}


ul{
    list-style-type: none;
}

nav{

    top: 0;
}

.couleur {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;

    background-color: #252B60;

    color: white;
    border: 1px solid black;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
}



.couleur:hover{
    background-color: transparent;
    color: black;

}

.mainS{
    margin-top: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mainSMDP{

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.formMDP{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}


footer {
    background: linear-gradient(to top, #2a2d65 0%, #fff 95%);
    font-size: .9rem;
    margin-top: 7rem;
    text-align: center;color: white;
    width: 100%;

}

.center {
    text-align: center;
    margin-top: -15%;
}

input{
    font-family: 'Amiri', serif;
}

nav form{
    height: 100px;
}

footer a {
    color: white;
}

.footer__logo {
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: black;
}

footer a:hover {
    color: #007bff;
    transition: 0.7s;
    text-decoration: none;
    transition: 0.7s;
    transform: scale(1.1);

}

small{
    color: white;
    font-size: 15px;
}
.footer__copyright {
    color: black;
}
.permalinks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto 3rem;
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}



.container form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

}

.container form input::placeholder, textarea::placeholder {
    font-style: italic;
    color: var(--color-black)
}

.container input, textarea{
    width: 100%;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-color: black;
    resize: none;
    color: var(--color-black)
}

@media screen and (max-width: 600px) {

    .navi a{
        font-size: 1.5rem;
    }

    /* passer body (et tous les éléments de largeur fixe) en largeur automatique */

    body {
        width: auto;
        margin: 0;
        padding: 0;
    }

    /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

    img,
    table,
    td,
    blockquote,
    code,
    pre,
    textarea,
    input,
    iframe,
    object,
    embed,
    video {
        max-width: 100%;
    }

    /* conserver le ratio des images */

    img {
        height: auto;
    }

    /* gestion des mots longs */

    textarea,
    table,
    td,
    th,
    code,
    pre,
    samp {
        -webkit-hyphens: auto; /* césure propre */
        -moz-hyphens: auto;
        hyphens: auto;
        word-wrap: break-word; /* passage à la ligne forcé */
    }

    code,
    pre,
    samp {
        white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe */
    }

    /* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

    .element1,
    .element2 {
        float: none;
        width: auto;
    }

    /* masquer/afficher les éléments  */

    .u-mobile {          display: block;          display: revert !important; /* affichage des éléments */        }        .u-no-mobile {          display: none !important; /* masquage des éléments */        }

    /* Un message personnalisé */

    body:before {
        content: "Version mobile du site";
        display: block;
        text-align: center;
        font-style: italic;
        color:
                #777;
    }

}



@media screen and (max-width: 1024px) {





    .left {
        padding-bottom: 50px;
    }
    span {
        font-size: 30px;
    }
    .bouton {
        font-size: 25px;
        margin-bottom: 25px;
    }

    .footer__logo{
        font-size: 1.5rem;
    }
    small{
        font-size: 14px;
    }

}